package com.bytezero.springboothomework.fourth;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * @Author: Bytezero_zhengLei
 * @Date: 2024/6/24 20:12
 * @Project_Name:
 * @Email: 420498246@qq.com
 * @Description:
 * @TODO:
 */
@RestController
public class FourthStart {

//    @RequestMapping("queryUser4")
//    public String queryUser4(String[] subjects){
//        System.out.println(Arrays.toString(subjects));
//        return "ok";
//    }

    @RequestMapping("queryUser4")
    public String queryUser4(@RequestParam List<String> subjects){
        System.out.println(subjects);
        return "ok";
    }
}
